authorize for read.naml
<override_macro name="authorize for read" requires="read_authorization,servlet">
<n.if.visitor.is_anonymous>
<then>
<n.redirect_to.>
<n.login_path>
<message>
<t>You must login to view the THST Forum. If you are not a member, you can register now.
</t>
</message>
<nextUrl>
<n.current_path/>
</nextUrl>
</n.login_path>
</n.redirect_to.>
<n.false />
<n.exit />
</then>
</n.if.visitor.is_anonymous>
<n.if>
<condition.either>
<condition1.visitor.can_view.authorization_node />
<condition2.visitor.owns.get_node_from_parameter />
</condition.either>
<then.true />
<else>
<n.redirect_to.authorization_node.unauthorized_path />
<n.false />
</else>
</n.if>
</override_macro>